
;this routine disables the restore key!

restoreprotect

         lda #<nmi
         sta $0318
         lda #>nmi
         sta $0319
         lda #$81
         sta $dd0d
         ldx #$00
         stx $dd05
         inx
         stx $dd04
         lda #$dd
         sta $dd0e
nmi      = *+1
         lda #$40   ;$40=rti!
         rts

;------------------------------------------------------------------------------------------

